home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48_2
/
rpl.bat
< prev
next >
Wrap
DOS Batch File
|
1995-03-23
|
2KB
|
57 lines
From comp.sys.handhelds Tue Jul 16 15:02:09 1991
Path: seq!ecsgate!mcnc!taco!lll-winken!elroy.jpl.nasa.gov!sdd.hp.com!hp-pcd!hpcvra.cv.hp.com!rnews!hpcvbbs!akcs.joehorn
From: akcs.joehorn@hpcvbbs.UUCP (Joseph K. Horn)
Newsgroups: comp.sys.handhelds
Subject: HP 48 System RPL Tools, DOS batch program for compilation
Message-ID: <2872bce5:3626comp.sys.handhelds@hpcvbbs.UUCP>
Date: 4 Jul 91 06:40:06 GMT
Lines: 45
The new HP System RPL Developer's Tools are so powerful and full of
options that I kept typing the wrong command or option at the wrong
time, and munging evrything up. Most of the time I just want to
type a System RPL Source Code file on the PC, and simply create the
downloadable binary HP 48 object file from it.
Here's a BATch file that you will find useful. Put it into your RPL
directory with all the other HP tools. Save it as "RPL.BAT".
After typing a System RPL Source Code file, save it with a filename
extension of .S (for "Source"), and then just type "RPL filename"
and in a few seconds you'll have "filename" ready to download!
No need to worry about which of the three programs to run first or
second or third, and no options and syntax to remember.
RPLCOMP, SASM and SLOAD are HP tools; the rest is good ol' DOS.
I hope this helps you all; it sure saves me time!
-- Joseph K. Horn -- Peripheral Vision, Ltd. --
--------------------- cut hither ------------------------------------
@echo off
rem - RPL.BAT, a batch file for automated source-to-binary compiling.
rem - by Joseph K. Horn, 3 July 1991; uses HP's System RPL Tools
rem - Type RPL FRED to use FRED.S (system RPL source code)
rem - to create FRED (binary downloadable object).
rem - Assumes that all the HP tools are in the current path,
rem - to which the SASM_LIB environment variable has also been SET.
rem - The FRED.S (source file) is not modified.
rem - Creates and then deletes FRED.A, FRED.M, and FRED.o
rem - If FRED.S does not exist, RPL.BAT has no effect.
if not exist %1.s exit
rplcomp %1.s %1.a
if exist %1 del %1
sasm -N %1
echo SE ENTRIES.o > %1.m
echo RE %1.o >> %1.m
sload -H -N -o %1 %1.m
for %%f in (%1.a %1.m %1.o) do del %%f
--------------------- cut thither -----------------------------------